const baseUrl = 'https://nideshop2.bluej.cn/api/'
const api = {
  index: baseUrl + 'index/index',       //1.首页
  catalog:baseUrl+'catalog/index',  //2.分类目录
  current: baseUrl +'catalog/current', //3.当前分类数据
  login: baseUrl + 'auth/loginByWeixin', //4.登录接口
  count: baseUrl +'goods/count', //5.统计商品总数
  list: baseUrl +'goods/list', //6.商品列表
  category: baseUrl +'goods/category', //7.分类数据
  goodsDetail: baseUrl + 'goods/detail', //8.商品详情
  news: baseUrl +'goods/new', //9.新品
  hot: baseUrl +'goods/hot', //10.热门
  related: baseUrl +'goods/related', //11.详情页关联商品
  brand: baseUrl +'brand/list', //12.品牌列表
  detail: baseUrl +'brand/detail', //13.品牌详情
  cart: baseUrl +'cart/index', //14.购物车数据
  addCart: baseUrl + 'cart/add',          //15.购物车列表
  update: baseUrl +'cart/update',//16.更新购物车
  deletes: baseUrl +'cart/delete', //17.删除购物车
  checked: baseUrl +'cart/checked', //18.选择或取消商品
  goodscount: baseUrl +'cart/goodscount', //19.获取购物车商品件数
  checkout: baseUrl +'cart/checkout', //20.下单前确认
  submit: baseUrl +'order/submit',//21.提交订单
  prepay: baseUrl +'pay/prepay',//22.微信下单
  collect: baseUrl +'collect/list',//23.收藏列表
  addor: baseUrl +'collect/addordelete',//24.添加或取消收藏
  comment: baseUrl +' comment/list', //25.评论列表
  ccount: baseUrl +'comment/count', //26.评论总数
  post: baseUrl +'comment/post', //27.post
  topic: baseUrl +'topic/list', //28.专题列表
  tdetail: baseUrl +'topic/detail', //29.专题详情
  trelated: baseUrl +'topic/related', //30.相关专题
  search: baseUrl +'search/index', //31.页面搜索数据
  result: baseUrl +'search/result', //32.最近搜索数据
  help: baseUrl +'search/helper', //33.搜索帮助
  clear: baseUrl +'search/clearhistory', //34.清除搜索记录
  address: baseUrl +'address/lis', //35.收货地址
  addrdetail: baseUrl +'address/detail', //36.收货地址详情
  save: baseUrl +'address/save', //37.保存收货地址
  addrdele: baseUrl +'address/delete', //38.删除收货地址
  region: baseUrl +'region/list', //39.区域列表
  order: baseUrl +'order/list', //40.订单列表
  ordetail: baseUrl +'order/detail', //41.订单详情
  cancel: baseUrl +'order/cancel', //42.取消订单
  express: baseUrl +'order/express', //43.物流详情
  foot: baseUrl +'footprint/list', //44.足迹列表
  fdele: baseUrl +'footprint/delete' //45.删除足迹
};
module.exports = api; 